<?
        require_once(__DIR__ . '/../inc/Customers.php');
        $row = GetOrderItems($_REQUEST['id']);
		
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>List of Items for Order Number: <?=$_REQUEST['id']?></title>
    <link rel="stylesheet" type="text/css" href="../inc/bootstrap.css">
    <style type="text/css" ">
        .error { color: red; }
    </style>
</head>
<body>
        
        <? include('../inc/header.php'); ?>
        <div class="container">
                        <? include('../inc/nav.php'); ?>
            <div id="contents">
			<table class="table table-striped table-bordered table-condensed table-hover">
                	<tr>
                    	<th>Customer Information Detail</th>
                        
                    </tr>
					</table>
                <table class="table table-striped table-bordered table-condensed table-hover">
                    <tr>
                        <th>Order Number</th>
                        <th>Item ID Number</th>
						<th>Product Name</th>
						<th>Product Description</th>
                        <th>Quantity</th>
                        <th>Unit Price</th>						       			
                    </tr>
					<? while($rs = $row->fetch_assoc()): $item = GetItem($rs['Item_id']); ?>
						
							<tr>					  
					    		<td><?=$rs['Orders_id']?></td>
                        		<td><?=$rs['Item_id']?></td>
                        		<td><?=$item['ProductName']?></td>								                        		<td><?=$item['ProductDescription']?></td>
                        		<td><?=$rs['Quantity']?></td>
                        		<td><?=$rs['ItemsPrice']?></td>
							</tr>
					<? endwhile; ?>
						
                    
				</table>				
            </div>
        </div>
    </body>
</html>